package com.fengmi.service;

import com.fengmi.entity.MallGoodsSpec;
import com.fengmi.entity.MallGoodsSpecOptions;
import com.fengmi.vo.InfoResult;
import com.fengmi.vo.PageResult;
import com.fengmi.vo.SpecOptionsVO;

import java.util.List;

/**
 * Author: 施俊豪
 * Date: 2022/1/19 10:07
 * Note: 产品规格选项service层
 */

public interface MallGoodsSpecOptionsService {
    // 分页+条件查询
    public PageResult<MallGoodsSpecOptions> findSpecAndOptions(MallGoodsSpecOptions options, String pageNum, String pageSize);

    // 添加产品选项和规格
    public InfoResult addSpecAndOptions(MallGoodsSpec spec);

    // 修改商品规格选项
    public InfoResult updateSpecOptions(MallGoodsSpecOptions options);

    // 删除商品规格选项
    public InfoResult delSepcAndOptions(MallGoodsSpecOptions options);

    //查询所有商品规格
    public InfoResult findSpecAll();

     // 批量删除商品规格和规格选项
    public InfoResult removeSpecAndOptions(SpecOptionsVO specOptionsVO);

    // 根据商品模板ID查询面板
    public List<MallGoodsSpec> findSpecAndOptionsByTemplateId(String templateId);
}
